#ifndef CONSOLEWIDGET_H
#define CONSOLEWIDGET_H

#include <QWidget>

class KeyBoard;
class Monitor;

namespace Ui {
    class ConsoleWidget;
}

class ConsoleWidget : public QWidget
{
    Q_OBJECT

public:
    ConsoleWidget(QWidget *parent = 0);
    ~ConsoleWidget();

protected:
    void keyPressEvent(QKeyEvent * event);

private slots:
    void acceptInput();
    void showLetter(QChar letter);

private:
    Ui::ConsoleWidget *ui;
    KeyBoard* keyboard;
    Monitor* monitor;
    bool keyboardReady;
};

#endif // CONSOLEWIDGET_H
